package com.example.mybatisplusdemo.model.dto;

import com.example.mybatisplusdemo.model.domain.Product;

public class PageDTO {
    private Integer pageNo = 1;
    private Integer pageSize = 5;
    private Product product;
    private Boolean pointsMall;
    private Boolean groupBuy;
    private Double discountRate;
    private String name; // 商品名称
    private Double price;
    private String origin;

    public Boolean getPointsMall() {
        return pointsMall;
    }

    public void setPointsMall(Boolean pointsMall) {
        this.pointsMall = pointsMall;
    }

    public Boolean getGroupBuy() {
        return groupBuy;
    }

    public void setGroupBuy(Boolean groupBuy) {
        this.groupBuy = groupBuy;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(Double discountRate) {
        this.discountRate = discountRate;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    private String orderBy; // 排序字段（如 price, sales, create_time）
    private String sort;    // 排序方式（asc 或 desc）

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
